import javafx.application.Application;
import javafx.stage.Stage;


 //游戏主类，负责启动游戏

public class LinkGame extends Application {
    public static void main(String[] args) {
        launch(args);
    }

    @Override
    public void start(Stage primaryStage) {
        // 初始化游戏状态和逻辑
        GameState state = new GameState();
        GameLogic logic = new GameLogic(state);

        // 初始化游戏界面
        GameUI ui = new GameUI(state, logic);
        ui.loadImages();
        ui.setupUI(primaryStage);

        // 生成初始地图
        logic.generateMap();
    }
}